import cv2 as cv

cap = cv.VideoCapture("video.h264")
cap.set(cv.CV_CAP_PROP_FOURCC, CV_FOURCC("H","2","6","4"))
ret, frame = cap.read()

while ret:

    ret, frame = cap.read()

    if frame is None: continue

    cv.imshow("", frame)


